﻿@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Links to test optional parameters in the paths</h2>
<ul>
    <li>
        <a href="@Url.RouteUrl("Test", new { Country = "Austria", Maker = "BMW", Type = "Hatchback" })">Austria-BMW-Hatchback</a>
    </li>
    <li>
        <a href="@Url.RouteUrl("Test", new { Country = "England", Type = "Truck" })">England-Truck</a>
    </li>
    <li>
        <a href="@Url.RouteUrl("Test", new { Maker = "BMW", Type = "Luxury" })">BMW- Luxury</a>
    </li>
    <li>
        <a href="@Url.RouteUrl("Test", new { Country = "England", Maker = "Audi", Type = "Truck" })">Austria-Audi-Truck</a>
    </li>
</ul>
<h2>Links to  test Alternative Route</h2>
<ul>
    <li><a href="@Url.RouteUrl("Dynamic", new { name = "OnlyForYou" })">Alternative Route</a>This link will navigate to a controller by the Alternative Route</li>
    <li><a href="@Url.RouteUrl("Dynamic", new { name = "Home" })">Static Route</a>This link navigates to the target normally</li>
</ul>
